(include "sci.sh")
(use "Main")
(use "Class_255_0")
(use "Game")
(script 517)



(instance public {Ogre's Region} of Rgn
    (properties)

    (method (handleEvent pEvent)
        (var gInvSaidMe)
        (if ((send pEvent:claimed()))
            return 1
        )
        return 
            (if ((== (send pEvent:type()) 128) and (send gCast:contains(gNewAct)))
                (if (Said('look/giant'))
                    Print(517 0)
                )(else
                    (if (Said('converse'))
                        Print(517 1)
                    )(else
                        (if (Said('kill/giant'))
                            Print(517 2)
                        )(else
                            (if (Said('get,capture/giant'))
                                Print(517 3)
                            )(else
                                (if (Said('kiss'))
                                    Print(517 4)
                                )(else
                                    (if (Said('deliver>'))
                                        (if ((= gInvSaidMe (send gInv:saidMe())) and (send gEgo:has((send gInv:indexOf((= gInvSaidMe (send gInv:saidMe())))))))
                                            Print(517 5)
                                        )(else
                                            Print(517 6)
                                        )
                                    )
                                )
                            )
                        )
                    )
                )
            )(else
                0
            )
    )

)
